

#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_timer.h"
#include "esp_lcd_panel_io.h"
#include "esp_lcd_panel_vendor.h"
#include "esp_lcd_panel_ops.h"
#include "driver/gpio.h"
#include "driver/spi_master.h"
#include "esp_err.h"
#include "esp_log.h"
#include "hw_lcd.h"
#include "f_lcd_gui.h"
#include "font.h"
/*https://docs.espressif.com/projects/esp-idf/zh_CN/latest/esp32c3/get-started/index.html 编程指南*/
/*https://oshwhub.com/li-chuang-kai-fa-ban/xd-esp32c3-aiot-v1_3_2硬件链接*/

/*第二部
https://gitee.com/QQ1159465634/aagui/tree/master/%E4%BB%A3%E7%A0%81
*/
void app_main(void)
{
    printf("start\n");
    lcd_7789_init();
    gui_color_fill(0xffff);
    Gui_Refresh();
    gui_color_fill(0xfff0);
    // gui_center_diffuse_refresh(0);
    // DrawArcRect(100,100,200,150,5,0);
    Gui_Refresh();
    uint8_t a[] = "abc";
    while (1)
    {
        gui_color_fill(0);
        gui_center_diffuse_refresh(1);
        // Gui_Refresh();
        vTaskDelay(pdMS_TO_TICKS(1000));
        gui_color_fill(0xfff0); 
        gui_show_string16x24(0,0,a,3,0xffff,0x0);
        gui_center_diffuse_refresh(2);
        // Gui_Refresh();
        vTaskDelay(pdMS_TO_TICKS(1000));
    }
    return;
}



